package com.tang.service.admin.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
import com.github.yulichang.base.MPJBaseServiceImpl;

import com.tang.service.admin.domain.SysRoleMenu;
import com.tang.service.admin.mapper.SysRoleMenuMapper;
import com.tang.service.admin.service.ISysRoleMenuService;
import org.springframework.stereotype.Service;


@Service
public class SysRoleMenuServiceImpl extends MPJBaseServiceImpl<SysRoleMenuMapper, SysRoleMenu> implements ISysRoleMenuService {


    @Override
    public void remove(Long id) {
        LambdaQueryWrapper<SysRoleMenu> wrapper = Wrappers.lambdaQuery();
        wrapper.eq(SysRoleMenu::getRoleId, id);
        remove(wrapper);

    }
}
